<% if @food_type.errors.any? %>
    <div class="row">
        <div class="col-md-12">
          <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <ul>
              <% @food_type.errors.full_messages.each do |message| %>

                <li><%= message %></li>
              <% end %>                     
            </ul>                                             
          </div>
        </div>
 </div>
<% end %>

<div class="form-group">
  <label class="col-md-12">菜品种类名称*</label>
  <div class="col-md-12">
       <%= f.text_field :name,class:"form-control",label:false,placeholder:"请输入菜品名称"%>
  </div>
</div>

<div class="form-group m-b-0">
    <div class="col-sm-offset-3 col-sm-9">
      <button type="submit" class="btn btn-info waves-effect waves-light m-t-10">确定</button>
      <%= link_to("取消", "/restaurants/food_types" , class:"btn btn-default waves-effect waves-light m-t-10") %>
    </div>
</div>
